package first_assignment;

/**
 * Common definitions for the entire project.
 * 
 * @author Peretz Oded, Castel Maayan, Farchy Ofir.
 */
public class Consts_1st {
	// the parameter stating the distribution (a,100-a) (default value).
	public final static int a = 80;
	// the size of the movie database (default value).
	public final static int M = 50000;
	// error code for an uninitialized popularity distribution.
	public final static int ePB_UNINIT = -1;
	// a generic error code for indicating an invalid parameter/argument.
	public final static int eINVALID = -2;
	
	// New movies volume.
	public final static double NewMoviesFactor = 0.03;

	public static class Movie
	{
		public int copies;
		public String movieName;
		public int[] requestCount;
		public int[] rejectCount;
		public int movieType = Consts_1st.eINVALID;

		public Movie(int copies, String name)
		{
		    requestCount = new int[3];
		    rejectCount = new int[3];
			this.copies = copies;
			this.movieName = name; 
		}
	}
}
